<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\cruise\models\CustomerCheck */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => '客户管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="customer-check-view">

    <h2 class="page-header"><?= Html::encode($this->title) ?>
        <p class="pull-right"> 
            <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
            <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-danger']) ?>
        </p>
    </h2>


    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            
            'first_name',
            'last_name',
            'en_first_name',
            'en_last_name',
            'pinyin',
            [
                'attribute' => 'gender',
                'value' => isset(Yii::$app->params['gender'][$model->gender])?Yii::$app->params['gender'][$model->gender]:'',
            ],
            'birthday',
            'country',
            'passport',
            'passport_add',
            'passport_date',
            'passport_grant',
            'passport_img',
            'native',
            //'phone',
            //'remark',
            'name',
            //'passport_check',
             [
                'attribute' => 'passport_check',
                'value' => Yii::$app->params['passport_check'][$model->passport_check],
            ],
            'created_at',
            'updated_at',
        ],
    ]) ?>

</div>
